home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-04-05 | 1.7 KB | 73 lines | [TEXT/MSCT] |
- //
- // File Info.M1S
- //
- month[1] = "Jan"
- month[2] = "Feb"
- month[3] = "Mar"
- month[4] = "Apr"
- month[5] = "May"
- month[6] = "Jun"
- month[7] = "Jul"
- month[8] = "Aug"
- month[9] = "Sep"
- month[10] = "Oct"
- month[11] = "Nov"
- month[12] = "Dec"
-
- proc ProcessFile
- print "Document : " + it.name
- print "File Type : " + it.class_name
- if it.platform is defined then
- print "Platform : " + it.platform
- end if
- if it.creator is defined then
- print "Creator : " + it.creator
- end if
- if it.version is defined then
- print "Version : " + it.version
- end if
- if it.orientation is defined then
- print "Orientation : " + it.orientation
- end if
- if it.creationdate is defined then
- if it.creationdate <> "" then
- monthNum = val(mid(it.creationdate,5,2))
- if monthNum >= 1 and monthNum <= 12 then
- d =
- mid(it.creationdate,7,2)
- + "-" + month[monthNum]
- + "-" + left(it.creationdate,4)
- else
- d = it.creationdate
- end if
- print "Creation date : " + d
- end if
- end if
- if it.modificationdate is defined then
- if it.modificationdate <> "" then
- d =
- mid(it.modificationdate ,7,2)
- + "-" + month[val(mid(it.modificationdate ,5,2))]
- + "-" + left(it.modificationdate ,4)
- print "Modification date: " + d
- end if
- end if
- if it.width is defined then
- print "Width (inch) : " + it.width
- end if
- if it.height is defined then
- print "Height (inch) : " + it.height
- end if
- if it.yres is defined then
- print "Resolution (dpi) : " + it.yres
- end if
- if it.pagesize_name is defined then
- print "Page Size : " + it.pagesize_name
- end if
- print "-------------------------------------------------------"
- end proc
-
- theJob = it
-
- on file do ProcessFile
- scan theJob links uses